require "View/BaseCtrl"
require "Common/GUIFun"

local P = 
{
	guiInfo = 
	{
		scrollPos = Vector2.zero,
		scrollDragSpeed = 0.5,
	}
}

P = NewClass(BaseCtrl, ClassFromFile(..., P));

local Screen = UnityEngine.Screen

function P:GetFullScreenAreaRect()
	local rect = UnityEngine.Rect.New(0, 0, Screen.width, Screen.height)
	local margins = NotchInfoManager.GetViewportMargins()
	local width = rect.width
	local height = rect.height
	rect.xMin = rect.xMin + width * margins.x
	rect.xMax = rect.xMax - width * margins.z
	rect.yMin = rect.yMin + height * margins.y
	rect.yMax = rect.yMax - height * margins.w
	return rect
end

function P:OnDestroy()
end